home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-08 | 530 b | 16 lines | [TEXT/ToyS] |
- set dItems to [¬
- {class:push button, bounds:[250, 65, 310, 85], name:"OK"}, ¬
- {class:push button, bounds:[170, 65, 230, 85], name:"Cancel"}, ¬
- {class:static text, bounds:[10, 10, 310, 10 + 32], contents:"A very simple dialog box.
- Just testing!"}]
-
- set dlog to dd auto dialog {size:[320, 95], contents:dItems} --, timeout after:60}
-
- if item 1 of dlog then
- -- OK was pressed
- else if item 2 of dlog then
- -- Cancel was pressed
- end if
-
- set dlog to dd auto dialog {default:2, size:[320, 95], contents:dItems} --, timeout after:60}
-